/*
*	Developed by Leonardo Chatain and Pedro Dusso, at Universidade Federal do Rio Grande do Sul, Brasil, 2009/1
*	Source available at glpacman.codeplex.com
*/

#pragma once
#ifndef _POINT2D_H_
#define _POINT2D_H_
#include <math.h>
class Point2D
{
protected:
	float x;
	float y;

public:
	Point2D(void);
	Point2D(float X, float Y);
	~Point2D(void);

	float getDistanceTo(Point2D other);

	// Getters and Setters
	inline float getX() { return x; }
	inline void setX(float X) { x = X; }
	inline float getY() { return y; }
	inline void setY(float Y) { y = Y; }
	inline void setXY(float X, float Y) { x = X; y = Y; }
};

#endif